package Control;

import Entity.MsgPackage;
import GUI.DisplayReportGui;
import GUI.ScreenManager;

public class DisplayReportControl {
	private DisplayReportGui dis_rep;
	private MsgPackage disMsg;
	private String rep_id;
	
	public DisplayReportControl(){
		dis_rep = new DisplayReportGui();
		disMsg = new MsgPackage();
		rep_id = new String();
		
	}

	public DisplayReportGui getDis_rep() {
		return dis_rep;
	}

	public void setDis_rep(DisplayReportGui dis_rep) {
		this.dis_rep = dis_rep;
	}

	public MsgPackage getDisMsg() {
		return disMsg;
	}

	public void setDisMsg(MsgPackage disMsg) {
		this.disMsg = disMsg;
	}

	public String getRep_id() {
		return rep_id;
	}

	public void setRep_id(String rep_id) {
		this.rep_id = rep_id;
	}
	public void submit_pressed(){
		rep_id = (String)dis_rep.getReqNum().getSelectedItem();
		disMsg.setObject(rep_id);
		disMsg.setObject(OP_CODE.DISPLAY_REPORT);
		ScreenManager.getClient().accept(disMsg);
		
	}
}
